﻿using TestingConcurrencyBenchmark.Helpers;
using TestingConcurrencyBenchmark.Problems.DiningPhilosophers.Philosophers;

namespace TestingConcurrencyBenchmark.Problems.DiningPhilosophers.DiningPhilosophersSolutions
{
    public class DiningPhilosophersWithDeadLock : AbstractDiningPhilosophers
    {
        public DiningPhilosophersWithDeadLock(int nbPhilosophers) : base(nbPhilosophers)
        {
        }

        protected override AbstractPhilosopher CreatePhilosopher(BenchmarkSemaphore leftFork, BenchmarkSemaphore rightFork)
        {
            return new RightHandedPhilosopher(leftFork, rightFork);
        }
    }
}